﻿using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using NicoView.Model.Browser;
using NicoView.Model.Share.Browser;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NicoView.Model.Service.Property
{
    

    public sealed class NicoViewLocalProperty:NicoViewObservableObject
    {
        public NicoViewLocalProperty()
        {
            BouyomichanPath = "";
        }

        private string _bouyomichanPath;
        public string BouyomichanPath
        {
            get
            {
                return _bouyomichanPath;
            }
            set
            {
                if (_bouyomichanPath == value) return;
                _bouyomichanPath = value;
                RaisePropertyChanged("BouyomichanPath");
            }
        }

        private UrlExecuteBrowser urlExecuteBrowser;

        [JsonProperty]
        [JsonConverter(typeof(StringEnumConverter))]
        public UrlExecuteBrowser UrlExecuteBrowser
        {
            get
            {
                return urlExecuteBrowser;
            }
            set
            {
                if (urlExecuteBrowser == value) return;
                urlExecuteBrowser = value;
                RaisePropertyChanged("UrlExecuteBrowser");
            }
        }
    }
}
